package com.t235.gc.user.service;

import com.t235.gc.dao.UsersDao;
import com.t235.gc.entity.Users;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserService {

    @Resource
    private UsersDao usersDao;

    public Users queryPhone(String Phone){
        return usersDao.queryPhone(Phone);
    }

    public Integer insertUsers(String phone) {
        Users users = new Users();
        users.setUserid(System.currentTimeMillis());
        users.setUserphone(phone);
        return usersDao.insertSelective(users);
    }

}
